package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.core.domain.entity.PrizePool;
import com.ruoyi.common.core.domain.entity.SignInRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * 参数配置 数据层
 *
 * @author ruoyi
 */
@Mapper
@Repository
public interface SignInMapper {
  void insertSignInRecord(SignInRecord signInRecord);
  List<SignInRecord> selectSignInRecordList(Long userId);
  SignInRecord selectPreviousByUserId(Long userId);
  SignInRecord selectSignInRecordBySignDateAndUserId(@Param("signDate") String signDate, @Param("userId") Long userId);
  //重置连续签到次数
  void updateSignInRecord(SignInRecord signInRecord);
}
